/*******************************************************************************
 * Copyright (c) 2009 Kevin Bierhoff and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Kevin Bierhoff - initial API and implementation
 *******************************************************************************/
package com.googlecode.twelfdevtools.model;

import java.util.List;

import org.eclipse.core.resources.IFile;

public interface IElfFile extends ITwelfModelElement {

	/**
	 * Returns the declaration context for the given position in the file.
	 * @param fileOffset Valid file position.
	 * @return the declaration context for the given position in the file.
	 */
	public abstract IDeclarationContext getContext(int fileOffset);

	/**
	 * Returns the declaration surrounding the given position in the file.
	 * @param fileOffset Valid file position.
	 * @return the declaration surrounding the given position in the file.
	 */
	public abstract ITwelfConstant getDeclaration(int fileOffset);

	public abstract List<ITwelfModelElement> getChildren();

	/** Returns the predecessor in the build order */
	public IElfFile getPredecessor();
	
	public IFile getResource();
}